\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{stys/settings-CN}[2023/05/10,v3.0]
\coverstyle={
cover-choose=cn, % cn (需新增项\entitle{#}); en ; enfig ; birkar
}
\usepackage{rotating}
\tikzset{>=Stealth}
\setlist{nosep,font=\upshape} % 取消所有列表默认距离
% 浮动环境设置
% 默认情况下, \LaTeX{} 要求每页的文字至少占据 20%,否则该页就只单独放置一个浮动环境,
% 而这通常不是我们想要的, 我们将这个要求降低到 5%.
\renewcommand*{\textfraction}{0.05}
% 有时如果多个浮动环境连续放在一起,
% 会将它们分在几个不同页,即使它们可在同一页放
% 得下. 我们可以通过修改 |\topfraction| 和 |\bottomfraction| 分别设置顶端和底端的浮
% 动环境的最大比例.
\renewcommand*{\topfraction}{0.9}
\renewcommand*{\bottomfraction}{0.8}
% 有时\LaTeX{}会把一个浮动环境单独放在一页,
% 我们要求这个环境至少要占据 85% 才能单独放在一页.
% 注意:  |\floatpagefraction| 的数值必须小于 |\topfraction|.
\renewcommand*{\floatpagefraction}{0.85}
% 关于图片 graphicx
% 如果图片没有指定后缀, 依次按下列顺序搜索
\DeclareGraphicsExtensions{.pdf,.eps,.jpg,.png}
% 设置图表搜索路径, 可以给图表文件夹取如下名字
\graphicspath{{figures/}{figure/}{pictures/}{picture/}{pic/}{pics/}{image/}{images/}}
% \usepackage{mtpro2}
\usepackage[physics]{stys/physicx}
\usepackage{stys/Symbols}
\usepackage{stys/codeblock}
\usepackage{amsfonts}
\DeclareFontFamily{U}{nxlmi}{}
\DeclareFontSubstitution{U}{nxlmi}{m}{it}
\DeclareFontShape{U}{nxlmi}{m}{it}{
        <-6.3>    nxlmi05
        <6.3-8.6> nxlmi07
        <8.6->    nxlmi0
}{}

\DeclareFontShape{U}{nxlmi}{b}{it}{
        <-6.3>    nxlbmi05
        <6.3-8.6> nxlbmi07
        <8.6->    nxlbmi0
}{}

\renewcommand{\partial}{{\text{\usefont{U}{nxlmi}{m}{it}\symbol{64}}\mspace{1mu}}}

%% 定义第一种定理
\mynewtheorem{
        defi={\textbf{定义}}[section]{interior style={left color=ReD!8,right color=ReD!5!CyaN!50}, borderline west={1.5mm}{0mm}{ReD}},
        thm={\textbf{定理}}[section]{interior style={left color=CyaN!80!black!20,right color=CyaN!80!black!15!CyaN!50}, borderline west={1.5mm}{0mm}{CyaN!80!black}},
        lem={\textbf{引理}}[section]{interior style={left color=BluE!8,right color=BluE!5!CyaN!50}, borderline west={1.5mm}{0mm}{BluE}},
        prop={\textbf{命题}}[section]{interior style={left color=OrangE!8,right color=OrangE!5!CyaN!50}, borderline west={1.5mm}{0mm}{OrangE}},
        exam={\textbf{题}}[chapter]{interior style={left color=DarkGreen!8,right color=DarkGreen!5!CyaN!50}, borderline west={1.5mm}{0mm}{DarkGreen}},
        cor={\textbf{推论}}[chapter]{interior style={left color=violet!8,right color=violet!5!CyaN!50}, borderline west={1.5mm}{0mm}{violet}},
}
\newtheorem*{remark}{\textbf{注}}
%% 定义第二种定理
% overlay unbroken=\my@theorem@overlay@unbroken{\theorem@name\ \thetcbthm}{额外的选项}
% overlay first=\my@theorem@overlay@first{\theorem@name\ \thetcbthm}{额外的选项}
%% 用户接口区
\definecolor{examback}{HTML}{e3e6e8}
\makeatletter
\mynewtcbtheorem{
        % 这个 theorem 是环境名
        theorem={
                        counter=tcbthm,
                        the counter=\thesection.\arabic{tcbthm},
                        name=定理, % 它保存到 \theorem@name 里
                        thmcolor=高粱红,
                        autoref name=\bfseries 定理,
                        style={
                                        arc=3pt,breakable,enhanced,interior style={top color=高粱红!12 ,middle color=高粱红!9, bottom color=高粱红!6},boxrule=0pt,top=8mm,
                                        fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},% 上
                                        fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%下
                                        opacityframe=0, opacityback=0.98,
                                        fontupper=\itshape, step={tcbthm},
                                        before pre=\smallskip, after app=\smallskip,
                                        overlay unbroken=\my@theorem@overlay@unbroken{\theorem@name\ \thetcbthm}{\theorem@thmcolor},
                                        overlay first=\my@theorem@overlay@first{\theorem@name\ \thetcbthm}{\theorem@thmcolor},
                                        overlay last=\my@theorem@overlay@last{\theorem@thmcolor},
                                }
                },
        proposition={
                        counter=tcbprop,
                        the counter=\thesection.\arabic{tcbprop},
                        autoref name=\bfseries 命题,
                        style={
                                        arc=3pt,breakable,enhanced,interior style={top color=高粱红!12 ,middle color=高粱红!9, bottom color=高粱红!6},boxrule=0pt,top=8mm,
                                        fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},% 上
                                        fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%下
                                        opacityframe=0, opacityback=0.98,
                                        fontupper=\itshape, step={tcbprop},
                                        before pre=\smallskip, after app=\smallskip,
                                        overlay unbroken=\my@theorem@overlay@unbroken{命题\ \thetcbprop}{高粱红},
                                        overlay first=\my@theorem@overlay@first{命题\ \thetcbprop}{高粱红},
                                        overlay last=\my@theorem@overlay@last{高粱红},
                                }
                },
        definition={
                        counter=tcbdefi,
                        the counter=\thesection.\arabic{tcbdefi},
                        autoref name=\bfseries 定义,
                        style={
                                        arc=3pt,breakable,enhanced,interior style={top color=紫棠!12 ,middle color=紫棠!9, bottom color=紫棠!6},boxrule=0pt,top=8mm,
                                        fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},% 上
                                        fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%下
                                        opacityframe=0, opacityback=0.98,
                                        fontupper=\itshape, step={tcbdefi},
                                        before pre=\smallskip, after app=\smallskip,
                                        overlay unbroken=\my@theorem@overlay@unbroken{定义\ \thetcbdefi}{紫棠},
                                        overlay first=\my@theorem@overlay@first{定义\ \thetcbdefi}{紫棠},
                                        overlay last=\my@theorem@overlay@last{紫棠},
                                }
                },
        lemma={
                        counter=tcblem,
                        the counter=\thesection.\arabic{tcblem},
                        name=引理,
                        lemcolor=靛蓝,
                        autoref name=\bfseries 引理,
                        style={
                                        arc=0mm,breakable,enhanced,interior style={top color=靛蓝!12 ,middle color=靛蓝!9, bottom color=靛蓝!6},arc=3pt,boxrule=0pt,top=7mm,bottom=5mm,
                                        fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},% 上
                                        fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%下
                                        opacityframe=0, opacityback=0.98,
                                        fontupper=\normalsize,step={tcblem},
                                        before pre=\smallskip, after app=\smallskip,
                                        overlay unbroken=\my@lemma@overlay@unbroken{\lemma@name\ \thetcblem}{\lemma@lemcolor},
                                        overlay first=\my@lemma@overlay@first{\lemma@name\ \thetcblem}{\lemma@lemcolor},
                                        overlay last=\my@lemma@overlay@last{\lemma@lemcolor},
                                }
                },
        corollary={
                        counter=tcbcor,
                        the counter=\thesection.\arabic{tcbcor},
                        autoref name=\bfseries 推论,
                        style={
                                        arc=0mm,breakable,enhanced,interior style={top color=茶色!12 ,middle color=茶色!9, bottom color=茶色!6},arc=3pt,boxrule=0pt,top=7mm,bottom=5mm,
                                        fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},% 上
                                        fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%下
                                        opacityframe=0, opacityback=0.98,
                                        fontupper=\normalsize,step={tcbcor},
                                        before pre=\smallskip, after app=\smallskip,
                                        overlay unbroken=\my@lemma@overlay@unbroken{推论\ \thetcbcor}{茶色},
                                        overlay first=\my@lemma@overlay@first{推论\ \thetcbcor}{茶色},
                                        overlay last=\my@lemma@overlay@last{茶色},
                                }
                },
        example={
                        counter=tcbexam,
                        the counter=\thesection.\arabic{tcbexam},
                        autoref name=\bfseries 例题,
                        style={
                                        arc=0mm,breakable,enhanced,interior style={top color=黛绿!12 ,middle color=黛绿!9, bottom color=黛绿!6},arc=3pt,boxrule=0pt,top=7mm,bottom=5mm,
                                        fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},% 上
                                        fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%下
                                        opacityframe=0, opacityback=0.98,
                                        fontupper=\normalsize, step={tcbexam},
                                        before pre=\smallskip, after app=\smallskip,
                                        overlay unbroken=\my@lemma@overlay@unbroken{例题\ \thetcbexam}{黛绿},
                                        overlay first=\my@lemma@overlay@first{例题\ \thetcbexam}{黛绿},
                                        overlay last=\my@lemma@overlay@last{黛绿},
                                }
                },
}
\makeatother
\newenvironment{note}[1][$\mathfrak{N}$ote]{\textcolor{orange}{\Line\uuline{#1}}\quad}{\Line}
\renewcommand{\Line}{\noindent\\\tikz\draw[line width=0.65pt,gray!80,dashed] (0,0)--++(.99\linewidth,0);\par}
\newenvironment{key}[1][]{\begin{fancybox}{#1}}{\end{fancybox}}
\newcommand{\Diff}[2][]{\frac{\partial #1}{\partial #2}}
\newcommand{\Dif}[2]{\frac{\dd #1}{\dd #2}}
\newcommand{\figref}[1]{图 \ref{#1}}
\newcommand{\tabref}[1]{表 \ref{#1}}
\newcommand{\eqnref}[1]{式 \ref{#1}}
\usepackage{extarrows}
\usetikzlibrary{tikzmark}
% \arrowname{super-script}
% \arrowname[sub-script]{super-script}
\usepackage{appendix} % 附录
\endinput